package model

import "fmt"

type Closable interface {
	//
	// close
	//  @Description: 	关闭
	//
	close()
}

type MyVO struct {
	closable Closable
}

type Closable1 struct{}
type Closable2 struct{}

func (c Closable1) close() {
	fmt.Println("closable1")
}

func (c Closable2) close() {
	fmt.Println("closable2")
}

func NewMyVO(c Closable) *MyVO {
	return &MyVO{closable: c}
}
